package top.jle.wx.proxy.constant;

import com.alibaba.fastjson2.annotation.JSONType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

public interface MenuOption {

    int MENU_LIMIT = 3;
    int SUB_MENU_LIMIT = 5;

    @JSONType(writeEnumAsJavaBean = true)
    @Schema(title="菜单类型")
    @Getter
    enum MenuType {
        click("按钮"),
        view("跳转URL"),
        scancode_push("扫码推送"),
        scancode_waitmsg("扫码推送并等待消息"),
        pic_sysphoto("拍照推送"),
        pic_photo_or_album("拍照或相册选择"),
        pic_weixin("微信相册发图推送"),
        location_select("位置选择推送"),
        media_id("下发素材"),
        view_limited("跳转图文素材URL"),
        miniprogram("跳转小程序");

        @Schema(title="类型码")
        private final String code;
        @Schema(title="类型名称")
        private final String name;

        MenuType(String name) {
            this.code = this.name();
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public String getName() {
            return name;
        }



    }
}
